package cn.hxzy.user.service.impl;

import cn.hxzy.common.domain.ClassMenu;
import cn.hxzy.user.mapper.ClassMenuMapper;
import cn.hxzy.user.service.ClassMenuService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassMenuServiceImpl implements ClassMenuService {
@Autowired
private ClassMenuMapper classMenuMapper;

    @Override
    public List<ClassMenu> selectList(Integer classId) {
        List<ClassMenu> c = classMenuMapper.selectList(new QueryWrapper<ClassMenu>().eq("class_id", classId));
        return c;
    }
}
